package org.ganesh.android;


import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class AndRailDB{
	private SQLiteDatabase mDb;
    private DatabaseHelper mDatabaseHelper;
    public AndRailDB(Context context) {
        mDatabaseHelper = new DatabaseHelper(context);
        mDb = mDatabaseHelper.getWritableDatabase();
    }
private class DatabaseHelper extends SQLiteOpenHelper {
    public DatabaseHelper(Context context) {
        super(context, "DB", null,1);
    }
    
    @Override
    public void onCreate(SQLiteDatabase db) {
        createPurchaseTable(db);
    }
    private void createPurchaseTable(SQLiteDatabase db) {
        db.execSQL("CREATE TABLE DBTable(ID TEXT PRIMARY KEY, Name Text)");
                
    }

	@Override
	public void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) {
		// TODO Auto-generated method stub
		
	}
}
}